/************************************************************************/
/* 
mencoder faac opts setting class
author pengl
date 2008-11-26
*/
/************************************************************************/


#include "StdAfx.h"
#include ".\faacopts.h"


static char gfaacopts[1024] = {0};
static char *faacname = "faacopts";
Cfaacopts::Cfaacopts(void)
{
}

Cfaacopts::~Cfaacopts(void)
{
}

char *Cfaacopts::get_myname() const
{
	return faacname;
}


void Cfaacopts::set_faacopts(Ps_faacopts opts)
{
	m_s_faacopts = *opts;
}

char *Cfaacopts::get_faacopts()
{
	sprintf(gfaacopts, "-oac faac -faacopts mpeg=%d:object=%d:raw:br=%d ",
			m_s_faacopts.faac_mpeg,
			m_s_faacopts.faac_object,
			m_s_faacopts.faac_bitrate);

	return gfaacopts;
}